#include "utils.h"
void setCharBit(unsigned char *test,int chanel,bool b)
{
    unsigned char l,r;
    l=*test>>(chanel+1);
    l=l<<(chanel+1);
    r=*test<<(8-chanel);
    r=r>>(8-chanel);
    if(b)
    {
        *test=1<<chanel;
        *test=l+r+*test;
    }
    else
    {
        *test=l+r        ;
    }
}

